/*
 * *
 *  * Created with IntelliJ RustRover.
 *  * Description:
 *  * Copyright Author: ZhenYi
 *  * DateTime: 2024/2/14 下午5:10
 *
 */


use serde::{Deserialize, Serialize};


#[derive(Deserialize,Serialize,Clone)]
pub struct Auth{
    username:String,
    password:String
}

impl Default for Auth {
    fn default() -> Self {
        Self{
            username:String::new(),
            password:String::new()
        }
    }

}

impl Auth {
    pub(crate) fn username(&self) ->String{
        self.username.clone()
    }
    pub(crate) fn password(&self) ->String{
        self.password.clone()
    }
}